<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class BespeakCate extends Model
{

    protected $guarded = ['date'];
    protected $table = 'bcates';
    public $timestamps = false;

    public function bespeak(){
        return $this->hasMany('App\Models\Bespeak','bcates_id','id');
    }
    public function store(){
        return $this->belongsTo('App\Models\store');
    }

    public function fixfxs(){
        return $this->belongsTo('App\Models\Fixfxs');
    }

    public function bespeaks(){
        return $this->belongsToMany('App\Models\Bespeak','bcate_bespeaks','bcate_id','bespeak_id');
    }
}
